<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="设置Windows PowerShell权限（适用于存储层快照备份）">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="oracle_gud_0119.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="oracle_gud_0127">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>设置Windows PowerShell权限（适用于存储层快照备份）</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="oracle_gud_0127"></a><a name="oracle_gud_0127"></a>

<h1 class="topictitle1">设置Windows PowerShell权限（适用于存储层快照备份）</h1>
<div><p>在Windows OS场景下，如果使用存储层快照备份，需确保Windows PowerShell具有执行脚本权限（RemoteSigned、Bypass或Unrestricted）。</p>
<div class="section"><h4 class="sectiontitle">操作步骤</h4><ol id="oracle_gud_0127__sql-0014_ol3845155813619"><li id="oracle_gud_0127__sql-0014_li1487878141211"><span>打开Windows PowerShell，执行<strong id="oracle_gud_0127__sql-0014_b99541622111210">Get-ExecutionPolicy</strong>命令，查询Windows PowerShell是否具有RemoteSigned、Bypass或Unrestricted执行脚本权限，以操作系统Windows 2019、数据库SQL Server 2019为例。</span><p><ul id="oracle_gud_0127__sql-0014_ul8490122691811"><li id="oracle_gud_0127__sql-0014_li9490326111815">若存在以上任一权限，执行结束。</li><li id="oracle_gud_0127__sql-0014_li1749052616186">若不存在以上权限，请执行<a href="#oracle_gud_0127__sql-0014_li48454583610">2</a>。</li></ul>
</p></li><li id="oracle_gud_0127__sql-0014_li48454583610"><a name="oracle_gud_0127__sql-0014_li48454583610"></a><a name="sql-0014_li48454583610"></a><span>执行<strong id="oracle_gud_0127__sql-0014_b4765171216104">Set-ExecutionPolicy RemoteSigned</strong>命令，赋予RemoteSigned权限。</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="oracle_gud_0119.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>